import request from '@/utils/request';

export default {
    register(username, userpass) {
        return request({
            method: 'post',
            url:  '/dev-api/user/register',
            data: { username, userpass }
        })
    },
    checkUser(username) {
        return request({
            method: 'get',
            url:  '/dev-api/user/checkUser',
            params: {username}
        })
    }
}